package com.mfangsoft.zhuangjialong.integration.xiaochengxuneeds.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.integration.xiaochengxuneeds.mapper.XiaoChengXuNeedsEntityMapper;
import com.mfangsoft.zhuangjialong.integration.xiaochengxuneeds.model.BaseXiaoChengXuNeedsEntity;
import com.mfangsoft.zhuangjialong.integration.xiaochengxuneeds.service.XiaoChengXuNeedsService;

@Service("serviceXiaoChengXuNeedsServiceImpl")
public class XiaoChengXuNeedsServiceImpl implements XiaoChengXuNeedsService{

	@Autowired
	XiaoChengXuNeedsEntityMapper chengXuNeedsEntityMapper;

	@Override
	public Page<Map<String, Object>> select(Page<Map<String, Object>> page) {
		List<Map<String,Object>> list = chengXuNeedsEntityMapper.selectForPage(page);
		page.setData(list);
		return page;
	}

	@Override
	public boolean modify(BaseXiaoChengXuNeedsEntity baseXiaoChengXuNeedsEntity) {
		return chengXuNeedsEntityMapper.updateByPrimaryKeySelective(baseXiaoChengXuNeedsEntity)>0;
	}
	
}
